<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@include file="/view/common/header-company.jspf" %>
	
		<center><h1>企业个人中心</h1></center>
		<hr>
		
		<h3>一、职位管理 </h3>
		<a href="<%=request.getContextPath() %>/view/company/position-add.jsp" class="pull-right">发布职位</a>
		<table class="table table-hover">
			<tr>
				<th>序号</th>
				<th>职位名称</th>
				<th>职责说明</th>
				<th>能力要求</th>
				<th>薪资范围</th>
				<th>发布时间</th>
				<th>操作</th>
			</tr>
			<c:forEach items="${positionList }" var="position" varStatus="v">
				<tr>${v.count }</tr>
				<td>${position.name }</td>
				<td>${position.duty }</td>
				<td>￥${position.salary1 }-${position.salary2 }</td>
				<td><fmt:formatDate value="${position.releaseTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td><a href="<%=request.getContextPath()%>/PositionServlet?command=preUpdate&positionId=${position.id}">修改</a> | <a href="javascript:deletePosition(${position.id })">删除</a></td>
			</c:forEach>
		</table>
		
		<h3>二、应聘管理</h3>
		<table class="table table-hover">
		<tr>
				<th>序号</th>
				<th>职位名称</th>
				<th>求职者</th>
				<th>申请时间</th>
				<th>审核状态</th>
				<th>操作</th>
			</tr>
		<tr>
				<td>1</td>
				<td>java工程师</td>
				<td><a href="">傻逼</a></td>
				<td>2014-01-01 01:01:01</td>
				<td>待审核</td>
				<td><a href="">通过</a> | <a href=""></a>拒绝</td>
			</tr>
		
		</table>
		<script>
		function deletePosition(positionId) {
			layer.confirm('确认删除？', {
			    btn: ['确认','取消'] //按钮
			}, function(){
			   location = '<%=request.getContextPath()%>/PositionServlet?command=deletePosition&positionId=' + positionId;
			});
		}
	
		</script>
	</body>
</html>